<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<html>
<head>
    <title>TRABAJO ENCARGADO</title>
    <link rel="stylesheet" href="<c:url value="/css/estilos.css" />">
    <link rel="stylesheet" href="<c:url value="estilo.css" />">
    <script type="text/javascript" src="<c:url value="/js/jquery-1.4.min.js" /> "></script>
    <script type="text/javascript" src="<c:url value="/js/app.js" /> "></script>
   
    <link href="css/ketchu/jquery.ketchup.css" rel="stylesheet" media="screen" type="text/css" />
    <script src="js/ketchu/jquery.js" type="text/javascript"></script>
    <script src="js/ketchu/jquery.ketchup.js" type="text/javascript"></script>
    <script src="js/ketchu/jquery.ketchup.validations.js" type="text/javascript"></script>
<script src="js/ketchu/jquery.ketchup.all.min.js" type="text/javascript"></script>

    <link rel="stylesheet" href="<c:url value="/css/ui-theme/jquery-ui-1.8.16.custom.css" />">

    <script type="text/javascript" src="<c:url value="/js/plugins-jquery/jquery.blockUI.js" /> "></script> 
    <script type="text/javascript" src="<c:url value="/js/plugins-jquery/jquery-ui-1.8.16.custom.min.js" /> "></script> 
    <script type="text/javascript" src="<c:url value="/js/plugins-jquery/jquery.ui.datepicker-es.js" /> "> </script> 
</head>
<body>
    
  
    
    
    
        <div id="loading" class="oculto">
                    <img src="<c:url value="/images/loading.gif" />" border="0" align="middle"  />
        </div>
                
            <div id="contenedor" align="center">
                 
                
                
                    <%-- *******************************************************************************--%>
        <form:form method="post" action="procesa_insertar_Registrador.htm" id="validation-events" commandName="RegistradorBB">
         <h3>TABLA REGISTRADOR </h3>         
    <table >
        <tr><td>Codigo :</td>
            <td><label><input type="text" name="idRegistrador" placeholder="Ingrese Codigo" required value="${RegistradorBB.idRegistrador}"  /></label></td>
        </tr>
        <tr><td>Nombres :</td>
            <td><label><form:input path="nombres" data-validate="validate(required, minlength(0)) on(keyup focus)" /></label></td>
        </tr>
        <tr><td>Apellidos :</td>
            <td><label><form:input path="apellidos" data-validate="validate(required, minlength(0)) on(keyup focus)" /></label></td>
        </tr>
        <tr><td>Direccion :</td>
        <td><label><form:input path="direccion"  data-validate="validate(required, minlength(0)) on(keyup focus)" /></label></td>
        </tr>
        <tr><td>User :</td>
            <td><label><form:input path="user" data-validate="validate(required, minlength(0)) on(keyup focus)" /></label></td>
       </tr>
        <tr><td>Pass :</td>
            <td><label><form:input path="pass" type="password" data-validate="validate(required, minlength(6)) on(keyup focus)" /></label></td>
        </tr>
        <tr><td>Email :</td>
            <td><label><form:input path="email" data-validate="validate(required, email) on(keyup focus)" /></label></td>
       </tr>
        <tr><td>FechaNacimiento</td>
            <td><label><form:input path="fechac" id="fecha_c" data-validate="validate(required, minlength(0)) on(keyup focus)" /></label></td>
       </tr>
       
           <tr><td>Sexo</td>
            <td>
                        <form:radiobutton path="sexo" value="M" label="M"  />
                        <form:radiobutton path="sexo" value="F" label="F"  />
            </td>
            </tr>
        <tr><td>Tipo :</td>
            <td><div class="rowElem">
                <form:select path="idTipo.idtipoReg" >
                    <form:options items="${lista_tipo}" itemValue="idtipoReg" itemLabel="descripcion" />
                </form:select>
                </div>
            </td>
        </tr>
       <tr>
            <td colspan="2"><label><center><input type="submit" name="Submit" value="Enviar" /></center></label></td>
        </tr>
    </table>
            
            <script>
                
            </script>
</form:form>
         
   
   <%-- *******************************************************************************--%>

        
            </div>

   
<script>
    
    
    
            $('#fecha_c').datepicker();
            
              $('#validation-events').ketchup({
                validateEvents: 'dblclick'
                
                });

            $("#validation-events").submit(function(){
                   var r=confirm("Esta seguro de registrar?");
                if (r==true){
                    $.blockUI({
                        centerY: 0,
                        message: "<h1>Espere un momento!!</h1>" 
                    })
                 
                    windows.location("MenuRegistrador.htm");
                    
                    $.unblockUI();

                }
                return false;
            })
        </script>

</body>
</html>



